import { Link,Outlet } from 'react-router-dom';

const Layout = () => {
  return (
    <div>
      <h1>我是Layout</h1>
      <Link to='/'>面板</Link>
      <br />
      <Link to='/about'>关于</Link>

      {/* 二级路由出口 */}
      <Outlet></Outlet>
    </div>
  );
};

export default Layout;
